#ifndef _TASKHANDLER_H
#define _TASKHANDLER_H

/*----------------------function pointer typedef----------------------------*/
typedef void (*FuncPtr)(void);

typedef enum
{
    NULL_TASK_ID,
	/*ADD TASK*/
	//RECEIVE_DATA_ID,
	//UART_TASK_ID,
	//KEY_CHECK_ID,
	//SWITCH_IN_TASK_ID,
	//ADC_SAMPLE_TASK_ID,
	LOGIC_TASK_ID,
	/*END ADD TASK*/
    TASK_MAX_ID
}EnumTaskID;

#ifndef NULL
#define NULL ((void *)0)
#endif


void SystemTaskManager(void);
void RegisterCallBackHandler(EnumTaskID task_id,FuncPtr fptr);
void DeleteTaskManager(EnumTaskID task_id);
void CallBackInit(void);

#endif
